﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GuanYijia.DoMain
{
    public class ProductionTaskHead
    {
        /// <summary>
        /// 生产任务主键
        /// </summary>
        [Key]
        public int head_id { get; set; }
        /// <summary>
        /// 生产编号
        /// </summary>
        [StringLength(50)]
        public string head_no { get; set; }
        /// <summary>
        /// 商品编号
        /// </summary>
        public int product_id { get; set; }
        /// <summary>
        /// 订购数量
        /// </summary>
        [Column(TypeName = "decimal(24,6)")]
        public decimal order_quantity { get; set; }
        /// <summary>
        /// 生产数量
        /// </summary>
        [Column(TypeName = "decimal(24,6)")]
        public decimal production_quantity{ get; set; }
        /// <summary>
        /// 总需物料数量
        /// </summary>
        [Column(TypeName = "decimal(24,6)")]
        public decimal bom_quantity { get; set; }
        /// <summary>
        /// 物料总价
        /// </summary>
        [Column(TypeName = "decimal(24,6)")]
        public decimal bom_allPrice { get; set; }
        /// <summary>
        /// 计划完工时间
        /// </summary>
        public DateTime finish_date { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(500)]
        public string? remark { get; set; }
        /// <summary>
        /// 操作员
        /// </summary>
        public int user_id { get; set; } = 1;
        /// <summary>
        /// 单据日期
        /// </summary>
        public DateTime create_date { get; set; }=DateTime.Now;
        /// <summary>
        /// 状态
        /// </summary>
        public int statues { get; set; } = 1;
        /// <summary>
        /// 删除标记
        /// </summary>
        public bool is_deleted { get; set; } = false;
    }
}
